package com.lanqiao.attendance.service;

import com.github.pagehelper.PageInfo;
import com.lanqiao.attendance.pojo.Administrator;
import com.lanqiao.attendance.vo.Result;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * @author 刘华
 */

@SuppressWarnings("all")
public interface AdminService {
    // 注册
    int register(Administrator administrator);

    //根据用户名查询
    Administrator selectOne(String admUsername);

    //新增管理员
    boolean addAdmin(Administrator administrator);

    //删除
    boolean deleteAdmin(long id);

    //更新
    int updateAdmin(Administrator administrator);

    // 管理员列表
    PageInfo<Administrator> selectAll(Integer pageNum,Integer pageSize);

    //用户名模糊查询
    PageInfo<Administrator> selectByLikeName(Integer pageNum,Integer pageSize,String admUsername);

    // 根据id查询
    Administrator selectById(long id);

    Result queryByAccount(String account);
}
